package com.group.activity.controller;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.group.activity.entity.ShopTypeEntity;
import com.group.activity.service.ShopTypeService;
import com.group.common.utils.PageUtils;
import com.group.common.utils.R;



/**
 * 商品分类表
 *
 * @author gxx
 * @email hongyezhaofang.com
 * @date 2021-11-13 10:36:51
 */
@RestController
@RequestMapping("activity/shoptype")
@CrossOrigin
public class ShopTypeController {
    @Autowired
    private ShopTypeService shopTypeService;

    /**
     * 递归
     */
    @RequestMapping("/selchild")
    public R selchild(){
        List<ShopTypeEntity> list=shopTypeService.selchild();

        return R.ok().put("selchild",list);
    }
}
